package com.lianxi.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    private Integer id;
    private String name;
    private Integer age;

    private List<News> news;







    public User(String name,Integer age){
        this.name=name;
        this.age=age;
    }

    public User(Integer id,String name,Integer age){
        this.id=id;
        this.name=name;
        this.age=age;
    }

}
